﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Service
{
    internal class CashierDepartment : Observer
    {
        DataLayer.DBFacade DB;
        public CashierDepartment(SystemMessage message)
        {
            message.Attach(this);
            DB = new DataLayer.DBFacade();
        }
        public void Alert(string message)
        {
            string query = string.Format("insert into onetouch.dbo.Task values('{0}','{1}','{2}')", "Cashier", message, DateTime.Now);
            DB.Execute(query);
        }
    }
}